<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-for指令</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="(item,index) in lesson" :key="index">
                {{ index }} - {{ item.name }} - {{ item.type }}
            </li>
        </ul>
    </div>
    <script src="../js/vue.min.js"></script>
    <script type="text/javascript">
        var vm = new Vue({
            el: '#app',
            data: {
                lesson: [
                    { name: '前端三大块',type: ['HTML','CSS','JavaScript'] },
                    { name: '前端三大框架',type: ['Vue',"React",'Angular'] },
                ]
            }
        });
    </script>
</body>
</html>